<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>许愿筛选 - WishSocial</title>
    <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/css/bootstrap.min.css" rel="stylesheet">
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
    <style>
        :root {
            --primary: #4f46e5;
            --primary-light: #e0e7ff;
            --secondary: #ec4899;
            --secondary-light: #fee2e2;
            --light-gray: #f3f4f6;
            --dark-gray: #1f2937;
            --text-gray: #6b7280;
            --border-color: #e5e7eb;
        }
        
        body {
            background-color: #fafafa;
            font-family: 'Inter', system-ui, -apple-system, sans-serif;
            color: var(--dark-gray);
            line-height: 1.6;
        }
        
        .container {
            max-width: 1200px;
        }
        
        /* 头部样式 */
        .site-header {
            background-color: white;
            border-bottom: 1px solid var(--border-color);
            position: sticky;
            top: 0;
            z-index: 100;
        }
        
        .logo {
            font-size: 1.5rem;
            font-weight: 700;
            color: var(--primary);
            text-decoration: none;
            display: flex;
            align-items: center;
            gap: 0.5rem;
        }
        
        .logo i {
            font-size: 1.8rem;
        }
        
        .search-container {
            position: relative;
            max-width: 500px;
            width: 100%;
        }
        
        .search-input {
            background-color: var(--light-gray);
            border: none;
            padding: 0.6rem 1rem 0.6rem 2.5rem;
            border-radius: 8px;
            width: 100%;
        }
        
        .search-icon {
            position: absolute;
            left: 0.8rem;
            top: 50%;
            transform: translateY(-50%);
            color: var(--text-gray);
        }
        
        .nav-links .nav-link {
            color: var(--dark-gray);
            font-weight: 500;
            margin-left: 1.5rem;
            transition: color 0.2s;
            display: flex;
            align-items: center;
            gap: 0.3rem;
        }
        
        .nav-links .nav-link:hover,
        .nav-links .nav-link.active {
            color: var(--primary);
        }
        
        .avatar {
            width: 38px;
            height: 38px;
            border-radius: 50%;
            object-fit: cover;
            cursor: pointer;
        }
        
        /* 筛选区域样式 */
        .filters-section {
            background-color: white;
            border-radius: 12px;
            box-shadow: 0 2px 8px rgba(0,0,0,0.05);
            padding: 1.5rem;
            margin-bottom: 2rem;
        }
        
        .filter-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 1.5rem;
        }
        
        .filter-title {
            font-size: 1.25rem;
            font-weight: 600;
        }
        
        .reset-filters {
            color: var(--primary);
            background: none;
            border: none;
            font-size: 0.9rem;
            cursor: pointer;
            display: flex;
            align-items: center;
            gap: 0.3rem;
        }
        
        .filter-group {
            margin-bottom: 1.5rem;
        }
        
        .filter-label {
            font-weight: 600;
            margin-bottom: 0.75rem;
            display: block;
        }
        
        .filter-options {
            display: flex;
            flex-wrap: wrap;
            gap: 0.75rem;
        }
        
        .filter-chip {
            background-color: var(--light-gray);
            border: 1px solid var(--border-color);
            border-radius: 20px;
            padding: 0.35rem 1rem;
            font-size: 0.9rem;
            cursor: pointer;
            transition: all 0.2s;
            display: flex;
            align-items: center;
            gap: 0.3rem;
        }
        
        .filter-chip:hover {
            background-color: var(--primary-light);
            border-color: var(--primary);
        }
        
        .filter-chip.active {
            background-color: var(--primary);
            color: white;
            border-color: var(--primary);
        }
        
        .price-range {
            display: flex;
            gap: 1rem;
            align-items: center;
        }
        
        .price-input {
            flex: 1;
            padding: 0.5rem 0.75rem;
            border: 1px solid var(--border-color);
            border-radius: 6px;
        }
        
        .date-range {
            display: flex;
            gap: 1rem;
        }
        
        .date-input {
            flex: 1;
            padding: 0.5rem 0.75rem;
            border: 1px solid var(--border-color);
            border-radius: 6px;
        }
        
        .filter-actions {
            display: flex;
            justify-content: flex-end;
            gap: 1rem;
            margin-top: 1rem;
        }
        
        .action-button {
            padding: 0.5rem 1.5rem;
            border-radius: 6px;
            font-weight: 500;
            font-size: 0.95rem;
            cursor: pointer;
            transition: all 0.2s;
        }
        
        .btn-clear {
            background-color: white;
            border: 1px solid var(--border-color);
            color: var(--dark-gray);
        }
        
        .btn-apply {
            background-color: var(--primary);
            color: white;
            border: none;
        }
        
        .btn-apply:hover {
            background-color: #4338ca;
        }
        
        /* 筛选结果区 */
        .results-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 1.5rem;
        }
        
        .results-count {
            font-size: 0.95rem;
            color: var(--text-gray);
        }
        
        .sort-options {
            display: flex;
            align-items: center;
            gap: 0.5rem;
        }
        
        .sort-label {
            font-size: 0.95rem;
            color: var(--text-gray);
        }
        
        .sort-select {
            padding: 0.4rem 0.75rem;
            border: 1px solid var(--border-color);
            border-radius: 6px;
            background-color: white;
            font-size: 0.9rem;
        }
        
        /* 活跃筛选条件 */
        .active-filters {
            display: flex;
            flex-wrap: wrap;
            gap: 0.75rem;
            margin-bottom: 1.5rem;
            padding: 1rem;
            background-color: var(--primary-light);
            border-radius: 8px;
        }
        
        .active-filter {
            display: flex;
            align-items: center;
            gap: 0.5rem;
            background-color: white;
            padding: 0.3rem 0.75rem;
            border-radius: 20px;
            font-size: 0.9rem;
            box-shadow: 0 1px 3px rgba(0,0,0,0.05);
        }
        
        .remove-filter {
            color: var(--text-gray);
            cursor: pointer;
            width: 18px;
            height: 18px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all 0.2s;
        }
        
        .remove-filter:hover {
            background-color: var(--light-gray);
            color: var(--dark-gray);
        }
        
        /* 许愿列表样式 */
        .wish-container {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
            gap: 1.5rem;
            margin-bottom: 2rem;
        }
        
        .wish-card {
            background-color: white;
            border-radius: 12px;
            box-shadow: 0 2px 8px rgba(0,0,0,0.05);
            overflow: hidden;
            transition: transform 0.2s, box-shadow 0.2s;
            text-decoration: none;
            color: var(--dark-gray);
        }
        
        .wish-card:hover {
            transform: translateY(-4px);
            box-shadow: 0 4px 12px rgba(0,0,0,0.1);
            color: var(--dark-gray);
        }
        
        .wish-images {
            position: relative;
        }
        
        .wish-image {
            width: 100%;
            height: 180px;
            object-fit: cover;
        }
        
        .no-image {
            width: 100%;
            height: 180px;
            background-color: var(--light-gray);
            display: flex;
            align-items: center;
            justify-content: center;
            color: var(--text-gray);
        }
        
        .no-image i {
            font-size: 3rem;
        }
        
        .multiple-images {
            position: absolute;
            top: 0.75rem;
            right: 0.75rem;
            background-color: rgba(0,0,0,0.5);
            color: white;
            border-radius: 4px;
            padding: 0.25rem 0.5rem;
            font-size: 0.75rem;
        }
        
        .wish-content {
            padding: 1rem;
        }
        
        .wish-title {
            font-weight: 600;
            margin-bottom: 0.5rem;
            display: -webkit-box;
            -webkit-line-clamp: 2;
            -webkit-box-orient: vertical;
            overflow: hidden;
            line-height: 1.4;
        }
        
        .wish-meta {
            display: flex;
            justify-content: space-between;
            align-items: center;
            font-size: 0.85rem;
            color: var(--text-gray);
            margin-bottom: 0.75rem;
        }
        
        .wish-author {
            display: flex;
            align-items: center;
            gap: 0.5rem;
        }
        
        .author-avatar {
            width: 24px;
            height: 24px;
            border-radius: 50%;
            object-fit: cover;
        }
        
        .author-name {
            font-weight: 500;
            color: var(--dark-gray);
        }
        
        .wish-stats {
            display: flex;
            gap: 1rem;
            font-size: 0.85rem;
            color: var(--text-gray);
        }
        
        .stat-item {
            display: flex;
            align-items: center;
            gap: 0.25rem;
        }
        
        .wish-actions {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding-top: 0.75rem;
            border-top: 1px solid var(--border-color);
        }
        
        .action-btn {
            background: none;
            border: none;
            color: var(--text-gray);
            font-size: 0.85rem;
            display: flex;
            align-items: center;
            gap: 0.25rem;
            cursor: pointer;
            transition: color 0.2s;
            padding: 0.25rem 0.5rem;
            border-radius: 4px;
        }
        
        .action-btn:hover {
            color: var(--primary);
            background-color: var(--primary-light);
        }
        
        .action-btn.liked {
            color: var(--secondary);
        }
        
        .action-btn.saved {
            color: var(--primary);
        }
        
        /* 分页控件 */
        .pagination-container {
            display: flex;
            justify-content: center;
            margin-top: 2rem;
        }
        
        .pagination {
            display: flex;
            gap: 0.5rem;
        }
        
        .page-btn {
            width: 36px;
            height: 36px;
            border-radius: 6px;
            border: 1px solid var(--border-color);
            background-color: white;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            transition: all 0.2s;
        }
        
        .page-btn:hover {
            border-color: var(--primary);
            color: var(--primary);
        }
        
        .page-btn.active {
            background-color: var(--primary);
            color: white;
            border-color: var(--primary);
        }
        
        .page-btn.disabled {
            opacity: 0.5;
            cursor: not-allowed;
        }
        
        /* 响应式设计 */
        @media (max-width: 992px) {
            .wish-container {
                grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
            }
        }
        
        @media (max-width: 768px) {
            .search-container {
                max-width: 200px;
            }
            
            .price-range, .date-range {
                flex-direction: column;
                gap: 0.75rem;
            }
            
            .price-input, .date-input {
                width: 100%;
            }
            
            .wish-container {
                grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
            }
        }
        
        @media (max-width: 576px) {
            .search-container {
                display: none;
            }
            
            .filter-options {
                gap: 0.5rem;
            }
            
            .filter-chip {
                padding: 0.3rem 0.75rem;
                font-size: 0.85rem;
            }
            
            .results-header {
                flex-direction: column;
                align-items: flex-start;
                gap: 0.75rem;
            }
            
            .wish-container {
                grid-template-columns: 1fr;
            }
        }
    </style>
</head>
<body>
    <!-- 网站头部 -->
    <header class="site-header py-3">
        <div class="container">
            <div class="d-flex justify-content-between align-items-center">
                <a href="#" class="logo">
                    <i class="fas fa-gift"></i>
                    WishSocial
                </a>
                
                <div class="search-container">
                    <i class="fas fa-search search-icon"></i>
                    <input type="text" class="search-input" placeholder="搜索许愿...">
                </div>
                
                <nav class="nav-links d-flex align-items-center">
                    <a href="#" class="nav-link">
                        <i class="fas fa-home"></i>
                        <span class="nav-text">首页</span>
                    </a>
                    <a href="#" class="nav-link active">
                        <i class="fas fa-filter"></i>
                        <span class="nav-text">许愿筛选</span>
                    </a>
                    <a href="#" class="nav-link">
                        <i class="fas fa-plus-circle"></i>
                        <span class="nav-text">发布许愿</span>
                    </a>
                    <a href="#" class="nav-link">
                        <i class="fas fa-bell"></i>
                        <span class="nav-text">通知</span>
                    </a>
                    <img src="https://picsum.photos/100/100?random=1" alt="用户头像" class="avatar ms-2">
                </nav>
            </div>
        </div>
    </header>
    
    <!-- 主体内容区 -->
    <div class="main-content py-4">
        <div class="container">
            <!-- 筛选区域 -->
            <section class="filters-section">
                <div class="filter-header">
                    <h2 class="filter-title">筛选条件</h2>
                    <button class="reset-filters">
                        <i class="fas fa-sync-alt"></i> 重置所有筛选
                    </button>
                </div>
                
                <div class="row">
                    <!-- 左侧筛选条件 -->
                    <div class="col-md-6">
                        <!-- 分类筛选 -->
                        <div class="filter-group">
                            <label class="filter-label">许愿分类</label>
                            <div class="filter-options">
                                <div class="filter-chip">
                                    <i class="fas fa-gift"></i> 全部
                                </div>
                                <div class="filter-chip">
                                    <i class="fas fa-camera"></i> 摄影
                                </div>
                                <div class="filter-chip">
                                    <i class="fas fa-music"></i> 音乐
                                </div>
                                <div class="filter-chip">
                                    <i class="fas fa-book"></i> 书籍
                                </div>
                                <div class="filter-chip">
                                    <i class="fas fa-utensils"></i> 美食
                                </div>
                                <div class="filter-chip">
                                    <i class="fas fa-plane"></i> 旅行
                                </div>
                                <div class="filter-chip">
                                    <i class="fas fa-laptop"></i> 数码
                                </div>
                                <div class="filter-chip">
                                    <i class="fas fa-dumbbell"></i> 运动
                                </div>
                            </div>
                        </div>
                        
                        <!-- 价格范围 -->
                        <div class="filter-group">
                            <label class="filter-label">价格范围</label>
                            <div class="price-range">
                                <input type="number" class="price-input" placeholder="最低价格" min="0">
                                <span>-</span>
                                <input type="number" class="price-input" placeholder="最高价格" min="0">
                            </div>
                        </div>
                        
                        <!-- 图片有无 -->
                        <div class="filter-group">
                            <label class="filter-label">图片要求</label>
                            <div class="filter-options">
                                <div class="filter-chip active">
                                    <i class="fas fa-image"></i> 全部
                                </div>
                                <div class="filter-chip">
                                    <i class="fas fa-check"></i> 有图片
                                </div>
                                <div class="filter-chip">
                                    <i class="fas fa-times"></i> 无图片
                                </div>
                            </div>
                        </div>
                    </div>
                    
                    <!-- 右侧筛选条件 -->
                    <div class="col-md-6">
                        <!-- 热门程度 -->
                        <div class="filter-group">
                            <label class="filter-label">热门程度</label>
                            <div class="filter-options">
                                <div class="filter-chip active">
                                    <i class="fas fa-fire"></i> 全部
                                </div>
                                <div class="filter-chip">
                                    <i class="fas fa-heart"></i> 高点赞
                                </div>
                                <div class="filter-chip">
                                    <i class="fas fa-comment"></i> 高评论
                                </div>
                                <div class="filter-chip">
                                    <i class="fas fa-eye"></i> 高浏览
                                </div>
                            </div>
                        </div>
                        
                        <!-- 发布时间 -->
                        <div class="filter-group">
                            <label class="filter-label">发布时间</label>
                            <div class="filter-options">
                                <div class="filter-chip active">
                                    <i class="fas fa-clock"></i> 全部时间
                                </div>
                                <div class="filter-chip">
                                    <i class="fas fa-hourglass-start"></i> 今天
                                </div>
                                <div class="filter-chip">
                                    <i class="fas fa-calendar-day"></i> 本周
                                </div>
                                <div class="filter-chip">
                                    <i class="fas fa-calendar-week"></i> 本月
                                </div>
                                <div class="filter-chip">
                                    <i class="fas fa-calendar"></i> 自定义
                                </div>
                            </div>
                        </div>
                        
                        <!-- 自定义日期范围 -->
                        <div class="filter-group date-range-container" style="display: none;">
                            <label class="filter-label">自定义日期范围</label>
                            <div class="date-range">
                                <input type="date" class="date-input">
                                <input type="date" class="date-input">
                            </div>
                        </div>
                        
                        <!-- 状态筛选 -->
                        <div class="filter-group">
                            <label class="filter-label">许愿状态</label>
                            <div class="filter-options">
                                <div class="filter-chip active">
                                    <i class="fas fa-list"></i> 全部状态
                                </div>
                                <div class="filter-chip">
                                    <i class="fas fa-hourglass-half"></i> 未实现
                                </div>
                                <div class="filter-chip">
                                    <i class="fas fa-check-circle"></i> 已实现
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
                
                <div class="filter-actions">
                    <button class="action-button btn-clear">清除筛选</button>
                    <button class="action-button btn-apply">应用筛选</button>
                </div>
            </section>
            
            <!-- 活跃筛选条件 -->
            <div class="active-filters">
                <div class="active-filter">
                    <span><i class="fas fa-camera"></i> 摄影</span>
                    <span class="remove-filter"><i class="fas fa-times"></i></span>
                </div>
                <div class="active-filter">
                    <span><i class="fas fa-clock"></i> 本月</span>
                    <span class="remove-filter"><i class="fas fa-times"></i></span>
                </div>
                <div class="active-filter">
                    <span><i class="fas fa-hourglass-half"></i> 未实现</span>
                    <span class="remove-filter"><i class="fas fa-times"></i></span>
                </div>
                <div class="active-filter">
                    <span><i class="fas fa-money-bill"></i> 价格: ¥500 - ¥3000</span>
                    <span class="remove-filter"><i class="fas fa-times"></i></span>
                </div>
            </div>
            
            <!-- 筛选结果区 -->
            <section>
                <div class="results-header">
                    <div class="results-count">找到 <strong>24</strong> 个符合条件的许愿</div>
                    <div class="sort-options">
                        <span class="sort-label">排序方式:</span>
                        <select class="sort-select">
                            <option value="relevance">相关度优先</option>
                            <option value="newest">最新发布</option>
                            <option value="popular">最受欢迎</option>
                            <option value="price-low">价格从低到高</option>
                            <option value="price-high">价格从高到低</option>
                        </select>
                    </div>
                </div>
                
                <div class="wish-container">
                    <!-- 许愿1 - 多图 -->
                    <article class="wish-card">
                        <div class="wish-images">
                            <img src="https://picsum.photos/600/400?random=10" alt="复古胶片相机" class="wish-image">
                            <div class="multiple-images">
                                <i class="fas fa-images"></i> 3
                            </div>
                        </div>
                        <div class="wish-content">
                            <h3 class="wish-title">复古胶片相机 - 记录生活中的美好瞬间</h3>
                            <div class="wish-meta">
                                <div class="wish-author">
                                    <img src="https://picsum.photos/100/100?random=20" alt="用户头像" class="author-avatar">
                                    <span class="author-name">摄影师小林</span>
                                </div>
                                <span>3天前</span>
                            </div>
                            <div class="wish-stats">
                                <div class="stat-item">
                                    <i class="fas fa-eye"></i>
                                    <span>2.4k</span>
                                </div>
                                <div class="stat-item">
                                    <i class="far fa-comment"></i>
                                    <span>42</span>
                                </div>
                                <div class="stat-item">
                                    <i class="fas fa-tag"></i>
                                    <span>¥1,500</span>
                                </div>
                            </div>
                            <div class="wish-actions">
                                <button class="action-btn like-btn">
                                    <i class="far fa-heart"></i>
                                    <span>328</span>
                                </button>
                                <button class="action-btn save-btn">
                                    <i class="far fa-bookmark"></i>
                                    <span>收藏</span>
                                </button>
                            </div>
                        </div>
                    </article>
                    
                    <!-- 许愿2 - 单图 -->
                    <article class="wish-card">
                        <div class="wish-images">
                            <img src="https://picsum.photos/600/400?random=11" alt="专业镜头" class="wish-image">
                        </div>
                        <div class="wish-content">
                            <h3 class="wish-title">专业人像镜头 - 提升我的摄影作品质量</h3>
                            <div class="wish-meta">
                                <div class="wish-author">
                                    <img src="https://picsum.photos/100/100?random=21" alt="用户头像" class="author-avatar">
                                    <span class="author-name">光影记录者</span>
                                </div>
                                <span>1周前</span>
                            </div>
                            <div class="wish-stats">
                                <div class="stat-item">
                                    <i class="fas fa-eye"></i>
                                    <span>1.8k</span>
                                </div>
                                <div class="stat-item">
                                    <i class="far fa-comment"></i>
                                    <span>29</span>
                                </div>
                                <div class="stat-item">
                                    <i class="fas fa-tag"></i>
                                    <span>¥2,800</span>
                                </div>
                            </div>
                            <div class="wish-actions">
                                <button class="action-btn like-btn">
                                    <i class="fas fa-heart liked"></i>
                                    <span>256</span>
                                </button>
                                <button class="action-btn save-btn">
                                    <i class="far fa-bookmark"></i>
                                    <span>收藏</span>
                                </button>
                            </div>
                        </div>
                    </article>
                    
                    <!-- 许愿3 - 无图 -->
                    <article class="wish-card">
                        <div class="wish-images">
                            <div class="no-image">
                                <i class="fas fa-graduation-cap"></i>
                            </div>
                        </div>
                        <div class="wish-content">
                            <h3 class="wish-title">专业摄影课程 - 想系统学习摄影技巧</h3>
                            <div class="wish-meta">
                                <div class="wish-author">
                                    <img src="https://picsum.photos/100/100?random=22" alt="用户头像" class="author-avatar">
                                    <span class="author-name">摄影新手</span>
                                </div>
                                <span>2周前</span>
                            </div>
                            <div class="wish-stats">
                                <div class="stat-item">
                                    <i class="fas fa-eye"></i>
                                    <span>1.2k</span>
                                </div>
                                <div class="stat-item">
                                    <i class="far fa-comment"></i>
                                    <span>18</span>
                                </div>
                                <div class="stat-item">
                                    <i class="fas fa-tag"></i>
                                    <span>¥800</span>
                                </div>
                            </div>
                            <div class="wish-actions">
                                <button class="action-btn like-btn">
                                    <i class="far fa-heart"></i>
                                    <span>178</span>
                                </button>
                                <button class="action-btn save-btn">
                                    <i class="fas fa-bookmark saved"></i>
                                    <span>已收藏</span>
                                </button>
                            </div>
                        </div>
                    </article>
                    
                    <!-- 许愿4 - 多图 -->
                    <article class="wish-card">
                        <div class="wish-images">
                            <img src="https://picsum.photos/600/400?random=12" alt="摄影背包" class="wish-image">
                            <div class="multiple-images">
                                <i class="fas fa-images"></i> 4
                            </div>
                        </div>
                        <div class="wish-content">
                            <h3 class="wish-title">专业摄影背包 - 方便携带我的器材</h3>
                            <div class="wish-meta">
                                <div class="wish-author">
                                    <img src="https://picsum.photos/100/100?random=23" alt="用户头像" class="author-avatar">
                                    <span class="author-name">旅行摄影师</span>
                                </div>
                                <span>4天前</span>
                            </div>
                            <div class="wish-stats">
                                <div class="stat-item">
                                    <i class="fas fa-eye"></i>
                                    <span>986</span>
                                </div>
                                <div class="stat-item">
                                    <i class="far fa-comment"></i>
                                    <span>31</span>
                                </div>
                                <div class="stat-item">
                                    <i class="fas fa-tag"></i>
                                    <span>¥650</span>
                                </div>
                            </div>
                            <div class="wish-actions">
                                <button class="action-btn like-btn">
                                    <i class="far fa-heart"></i>
                                    <span>156</span>
                                </button>
                                <button class="action-btn save-btn">
                                    <i class="far fa-bookmark"></i>
                                    <span>收藏</span>
                                </button>
                            </div>
                        </div>
                    </article>
                </div>
                
                <!-- 分页控件 -->
                <div class="pagination-container">
                    <div class="pagination">
                        <button class="page-btn disabled">
                            <i class="fas fa-chevron-left"></i>
                        </button>
                        <button class="page-btn active">1</button>
                        <button class="page-btn">2</button>
                        <button class="page-btn">3</button>
                        <button class="page-btn">4</button>
                        <button class="page-btn">5</button>
                        <button class="page-btn">
                            <i class="fas fa-chevron-right"></i>
                        </button>
                    </div>
                </div>
            </section>
        </div>
    </div>
    
    <script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/js/bootstrap.bundle.min.js"></script>
    <script>
        document.addEventListener('DOMContentLoaded', function() {
            // 筛选芯片选择功能
            const filterChips = document.querySelectorAll('.filter-chip');
            filterChips.forEach(chip => {
                chip.addEventListener('click', function() {
                    // 如果是"全部"或"全部时间"等重置选项，取消同组其他选中状态
                    const parentGroup = this.closest('.filter-options');
                    const isResetOption = this.textContent.includes('全部') || 
                                        this.textContent.includes('全部时间');
                    
                    if (isResetOption) {
                        parentGroup.querySelectorAll('.filter-chip').forEach(c => {
                            c.classList.remove('active');
                        });
                        this.classList.add('active');
                    } else {
                        // 取消同组的"全部"选项选中状态
                        parentGroup.querySelectorAll('.filter-chip').forEach(c => {
                            if (c.textContent.includes('全部') || 
                                c.textContent.includes('全部时间')) {
                                c.classList.remove('active');
                            }
                        });
                        // 切换当前选项状态
                        this.classList.toggle('active');
                    }
                    
                    // 处理自定义日期显示
                    if (this.textContent.includes('自定义')) {
                        document.querySelector('.date-range-container').style.display = 'block';
                    } else if (!this.textContent.includes('全部时间')) {
                        document.querySelector('.date-range-container').style.display = 'none';
                    }
                });
            });
            
            // 重置所有筛选
            const resetFiltersBtn = document.querySelector('.reset-filters');
            resetFiltersBtn.addEventListener('click', function() {
                // 重置所有筛选芯片
                document.querySelectorAll('.filter-chip').forEach(chip => {
                    if (chip.textContent.includes('全部') || 
                        chip.textContent.includes('全部时间')) {
                        chip.classList.add('active');
                    } else {
                        chip.classList.remove('active');
                    }
                });
                
                // 清空输入框
                document.querySelectorAll('.price-input, .date-input').forEach(input => {
                    input.value = '';
                });
                
                // 隐藏自定义日期
                document.querySelector('.date-range-container').style.display = 'none';
                
                // 清空活跃筛选
                document.querySelector('.active-filters').innerHTML = '';
            });
            
            // 清除筛选按钮
            const clearFiltersBtn = document.querySelector('.btn-clear');
            clearFiltersBtn.addEventListener('click', function() {
                resetFiltersBtn.click();
            });
            
            // 应用筛选按钮
            const applyFiltersBtn = document.querySelector('.btn-apply');
            applyFiltersBtn.addEventListener('click', function() {
                // 这里可以添加筛选逻辑
                alert('筛选已应用，共找到24个符合条件的许愿');
            });
            
            // 移除单个筛选条件
            const removeFilterBtns = document.querySelectorAll('.remove-filter');
            removeFilterBtns.forEach(btn => {
                btn.addEventListener('click', function() {
                    this.closest('.active-filter').remove();
                    
                    // 如果没有活跃筛选条件，隐藏整个容器
                    if (document.querySelector('.active-filters').children.length === 0) {
                        document.querySelector('.active-filters').style.display = 'none';
                    }
                });
            });
            
            // 点赞按钮功能
            const likeBtns = document.querySelectorAll('.like-btn');
            likeBtns.forEach(btn => {
                btn.addEventListener('click', function() {
                    this.classList.toggle('liked');
                    const icon = this.querySelector('i');
                    const countElem = this.querySelector('span');
                    
                    if (this.classList.contains('liked')) {
                        icon.classList.remove('far');
                        icon.classList.add('fas');
                        countElem.textContent = (parseInt(countElem.textContent) + 1).toString();
                    } else {
                        icon.classList.remove('fas');
                        icon.classList.add('far');
                        countElem.textContent = (parseInt(countElem.textContent) - 1).toString();
                    }
                });
            });
            
            // 收藏按钮功能
            const saveBtns = document.querySelectorAll('.save-btn');
            saveBtns.forEach(btn => {
                btn.addEventListener('click', function() {
                    this.classList.toggle('saved');
                    const icon = this.querySelector('i');
                    const textElem = this.querySelector('span');
                    
                    if (this.classList.contains('saved')) {
                        icon.classList.remove('far');
                        icon.classList.add('fas');
                        textElem.textContent = '已收藏';
                    } else {
                        icon.classList.remove('fas');
                        icon.classList.add('far');
                        textElem.textContent = '收藏';
                    }
                });
            });
            
            // 分页功能
            const pageBtns = document.querySelectorAll('.page-btn:not(.disabled)');
            pageBtns.forEach(btn => {
                if (!btn.querySelector('i')) { // 排除箭头按钮
                    btn.addEventListener('click', function() {
                        pageBtns.forEach(b => b.classList.remove('active'));
                        this.classList.add('active');
                    });
                }
            });
        });
    </script>
</body>
</html>
    
